#include "playercontroller.h"

PlayerController::PlayerController(int tm):Object(), team(tm)
{
    resources = 0;
    selected = NULL;
}
void PlayerController::saveState() {

}
void PlayerController::load(){

}

ComputerController::ComputerController(int tm):PlayerController(tm){
    numTanks = 0;
}

void PlayerController::update(){
    /*if(resources > 10 && numTanks < 5){
        emit createTank(2, 611,377);
        numTanks++;
        resources -= 10;
    }*/
    if(selected != NULL && !selected->getSelected()){
        selected = NULL;
    }
}
